package cn.e4j.modular.crm.entity;

import cn.e4j.core.typewrap.PO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author shixc
 * @since 2019-02-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("MMRH_T")
public class MmrhT extends PO<MmrhT> {

    private static final long serialVersionUID = 1L;


    private String MMRHENT;

    @TableId(value = "MMRHDOCNO", type = IdType.INPUT)
    private String MMRHDOCNO;

    private BigDecimal MMRHSEQ;

    private String MMRH001;

    private String MMRH002;
    private String MMRH003;

    private BigDecimal MMRH004;
    private BigDecimal MMRH005;
    private BigDecimal MMRH006;

    private LocalDate MMRH007;
    private String MMRH008;
    private String MMRH009;
    private LocalDate MMRH030;
    private String MMRH031;
    private String MMRH032;

    private String MMRH033;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRH034;

    private String MMRHACTI;
    @TableField(fill = FieldFill.INSERT)
    private String MMRHUSER;

    @TableField(fill = FieldFill.INSERT)
    private String MMRHGRUP;

    @TableField(fill = FieldFill.UPDATE)
    private String MMRHMODU;

    @TableField(fill = FieldFill.INSERT)
    private String MMRHTIME;

    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate MMRHDATE;

    @TableField(fill = FieldFill.INSERT)
    private String MMRHORIG;

    @TableField(fill = FieldFill.INSERT)
    private String MMRHORIU;


    @Override
    protected Serializable pkVal() {
        return this.MMRHENT;
    }

}
